using System.Collections.Generic;

namespace TheBlog.NhibernateModel.Entities
{
    [SetAudit]
    public class Article : EntityBase
    {
        private IList<Comment> _comments;
        public virtual string Title { get; set; }
        public virtual string Content { get; set; }

        public virtual IList<Comment> Comments
        {
            get
            {
                _comments = _comments ?? new List<Comment>();
                return _comments;
            }
            set { _comments = value; }
        }
    }
}